package com.charles.seckillsystem.controller.admin;

import com.charles.seckillcommon.core.controller.BaseController;
import com.charles.seckillcommon.core.domain.TableInfo;
import com.charles.seckillcommon.security.annotation.RolePermit;
import com.charles.seckillsystem.form.admin.LogListQuerys;
import com.charles.seckillsystem.mapper.SysLogMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/admin/log")
public class AdminLogController extends BaseController {

    @Resource
    private SysLogMapper sysLogMapper;
    
    /**
     * 订单列表
     */
    @GetMapping("getLogList")
    @RolePermit(values = "admin")
    public TableInfo logTableList(LogListQuerys logListQuerys) {
        startPage();
        return getDataTable(sysLogMapper.queryLogTableList(logListQuerys));
    }

}
